package com.autonavi.yunda.yunji.core.service.dbImpl;

import com.autonavi.yunda.yunji.core.engine.handler.SqlHandler;
import com.autonavi.yunda.yunji.core.service.ICommonDbService;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author cizhong.wcs
 * @date 2023/7/19 14:09
 */
@Component
public class CommonDbServiceImpl implements ICommonDbService {

    @Override
    public List<Map<String, Object>> sql(String dbName, String sql) {
        return SqlHandler.sql(dbName, sql);
    }

    @Override
    public Object sql(String dbName, String sql, Map<String, Object> options) {
        return SqlHandler.sql(dbName, sql, options);
    }
}
